/**
* @ClassName: CandidateDaoI
* @Description: 
* @author YuYang
* @date 2013-6-5 上午12:42:46
*/
package com.demodis.dao;

import java.util.List;
import java.util.Map;

import com.demodis.domain.TblCandidate;

public interface CandidateDaoI extends BaseDaoI<TblCandidate> {

	TblCandidate getCandidate(Integer canId);

	/**
	 * @param catId
	 * @return
	 */
	List<TblCandidate> getByCatId(Integer catId, int userId);

	/**
	 * @param canId
	 * @return
	 */
	TblCandidate getDetailedInfo(Integer canId);

	/**
	 * @param canId
	 */
	boolean doVote(int canId);

	/**
	 * @param t
	 * @return
	 */
	List<TblCandidate> get(TblCandidate t);

	/**
	 * @return
	 */
	int getCount();
	
	boolean saveRecord(int userId);
	
	boolean isVote(int userId);

	List<Map<String, Object>> queryVoteState(TblCandidate t);

	/**
	 * @param t
	 * @return
	 */
	List<Map<String, Object>> queryVoteStateByGourpId(TblCandidate t);
}
